package com.booter.ws.controller;

import com.booter.ws.session.SessionStore;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lcw
 * @date 2022/6/17 16:52
 */
@RestController
public class WsController {


    @RequestMapping("user/online")
    public Object online(@RequestParam String sessionId) {
        SessionStore.removeSession(sessionId);
        return "ok";
    }

}
